/**
 * 
 * Opened Touchable RIA Framework - A Web RIA Javascript Framework
 * 
 * Copyright (c) 2012
 * Dual licensed under the MIT or GPL v2 licenses.
 * 
 * @author  CuTe_CuBe
 * @version $Id: line.js 6 2012-03-10 12:51:49Z cc.hgfeng@gmail.com $
 */

/**
 * OTR.Graph.Line
 * 直线对象
 * 
 * @class OTR.Graph.Line
 * @constructor
 * @param object params
 * dx  连结终点横坐标
 * dy  连结终点纵坐标
 */
OTR.Graph.Line = OTR.extend(OTR.Graph.Shape, {

    /**
     * 初始化对象
     * 
     * @param object params
     */
    _init: function(params) {
        this._addAttrs({dy: 0, dx: 0, endArrow: null, startArrow: null});
        this._setName('Line');
        
        OTR.Graph.Rect.__super._init.call(this, params);
    }
});